package com.nepenthe.service;

import com.nepenthe.dao.UserMapper;
import com.nepenthe.pojo.User;

/**
 * @author goodsir
 */
public class UserServiceImpl implements UserService {
    /**
     * service调dao层:组合dao层
     */
    private UserMapper userMapper;

    public void setBookMapper(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    @Override
    public User queryUser(String studentID, String pwd) {
        return userMapper.queryUser(studentID, pwd);
    }

    @Override
    public int addUser(User user) {
        return userMapper.addUser(user);
    }

    @Override
    public int updateUser(User user) {
        return userMapper.updateUser(user);
    }
}
